home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1286.dms / var1286.adf / printers / IBMColorJet / ANSIecho.demo < prev    next >
Text File  |  1992-09-02  |  3KB  |  96 lines

  1. ; Demo file showing what can be done with the ANSI capabilities of the
  2. ; replacement echo ("ansiecho") command.
  3. ; Remember that if you need to output semicolons, put *everything* in quotes.
  4. ; Sequences are split into multiple echoes in order to introduce a delay
  5. ; effect -- ansiecho is quite happy with maximum size (255) command lines.
  6. ; Perpetrator: Dewi Williams ..!ihnp4!druca!dewi
  7.  
  8. ansiecho \f           ; clears the window
  9. ansiecho \e[10E\e[13C\c
  10. ansiecho \e[37mThis is a demonstration of ANSI echo sequences\e[0m
  11. ansiecho \e[13C----------------------------------------------
  12. wait 1
  13. ; Now do some slow-ish scrolling.
  14. ansiecho \e[2S\c
  15. ansiecho \e[2S\c
  16. ansiecho \e[2S\c
  17. ansiecho \e[2S\c
  18. ansiecho "\e[2S\e[4;1H\c"
  19. ansiecho This echo allows full access to the ANSI X3.64 codes for the CON: driver.
  20. ansiecho These allow the following capabilities:
  21. ansiecho "\e[10C\e[37mScrolling\e[0m\e[6;40Hboth up and down"
  22. ansiecho "\e[10C\e[37mColor change\e[0m\e[7;40Has already demonstrated"
  23. wait 1
  24. ansiecho "\e[10C\e[37mCursor movement\e[0m\e[20;40H\c"
  25. wait 1
  26. ansiecho "to over here...\e[8;40H\c"
  27. wait 1
  28. ansiecho "\e[20;40H\e[1M\e[9;11H\c"
  29. ansiecho "\e[37mErase to end of line\e[0m\e[9;40Htext soon to disappear...\c"
  30. ansiecho "\e[9;40H\c"
  31. wait 1
  32. ansiecho "\e[9;40H\e[1K\c"
  33. wait 1
  34. ansiecho "\n\e[10C\e[37mIns Character\e[0m\e[10;37Hinsert space & shift right\c"
  35. wait 2
  36. ansiecho "\e[10;14H\e[3@\c"
  37. wait 1
  38. ansiecho "ert\c"
  39. wait 1
  40. ansiecho "\e[11;11H\e[37mDelete Charac\e[mXX\e[37mter\e[0m\c"
  41. ansiecho "\e[11;42Hdelete & shift left\c"
  42. wait 1
  43. ansiecho "\e[11;24H\c"
  44. wait 1
  45. ansiecho "\e[2P"
  46. ansiecho "\e[12;11H\e[37mInsert Line\e[m\c"
  47. wait 1
  48. ansiecho "\e[1L\e[13;40Hlike so..."
  49. ; Now start moving the main body of the text slowly out of sight.
  50. ; Do this by repetitive single insert line calls -- otherwise it'll
  51. ; just shoot on by...
  52. wait 2
  53. ansiecho "\e[4;1H\e[1L\c"
  54. ansiecho \e[1L\c
  55. ansiecho \e[1L\c
  56. ansiecho \e[1L\c
  57. ansiecho \e[1L\c
  58. ansiecho \e[1L\c
  59. ansiecho \e[1L\c
  60. ansiecho \e[1L\c
  61. ansiecho \e[1L\c
  62. ansiecho \e[1L\c
  63. ansiecho \e[1L\c
  64. ansiecho \e[1L\c
  65. ansiecho \e[1L\c
  66. ansiecho \e[1L\c
  67. ansiecho \e[1L\c
  68. ansiecho \e[1L\c
  69. ansiecho \e[1L\c
  70. ansiecho \e[1L\c
  71. ansiecho \e[1L\c
  72. ansiecho \e[1L\c
  73. ansiecho "\e[7;16HHave fun brightening up your command files!"
  74. wait 1
  75. ansiecho \e[37m\c
  76. ansiecho "\e[7;15HHave fun brightening up your command files!"
  77. ansiecho \e[0m\c
  78. ansiecho "\e[7;15HHave fun brightening up your command files!"
  79. ansiecho \e[37m\c
  80. ansiecho "\e[7;15HHave fun brightening up your command files!"
  81. ansiecho \e[0m\c
  82. ansiecho "\e[7;15HHave fun brightening up your command files!"
  83. ansiecho \e[37m\c
  84. ansiecho "\e[7;15HHave fun brightening up your command files!"
  85. ansiecho \e[0m\c
  86. ansiecho "\e[7;15HHave fun brightening up your command files!"
  87. ansiecho \e[37m\c
  88. ansiecho "\e[7;15HHave fun brightening up your command files!"
  89. ansiecho \e[0m\c
  90. ansiecho "\e[7;15HHave fun brightening up your command files!"
  91. ansiecho \e[37m\c
  92. ansiecho "\e[7;15HHave fun brightening up your command files!"
  93. ansiecho \e[0m\c
  94. ansiecho "\e[7;15HHave fun brightening up your command files!"
  95. wait 3
  96.